package com.wlyuan.open.remote.converter;

import com.alibaba.fastjson.JSON;
import com.wlyuan.open.remote.message.CarrierMessage;
import com.wlyuan.open.vo.push.basic.CarrierDetailVO;
import lombok.var;

/**
 * @author
 * 承运商消息转化
 */
public class CarrierMessageConverter implements StringMessageConverter<CarrierMessage>{

    @Override
    public CarrierMessage convert(String source) {
        var message = JSON.parseObject(String.valueOf(JSON.parse(source)));
        source = message.toString();
        return JSON.parseObject(source, CarrierMessage.class);
    }
}
